package com.heima.model.behavior;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "DTO for article read count")
public class ArticleReadCountDto {

    @ApiModelProperty(value = "文章ID", required = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private long articleId;

    @ApiModelProperty(value = "阅读次数，默认为1", required = false)
    private int count = 1;

}